import axios from '@/utils/request.js'

export const shopping = (restaurant_id)=> axios({
  url:'/shopping/v2/menu',
  method:'get',
  params:{
    restaurant_id:restaurant_id
  }
})

//商家首页头部
export const restaurant = (id)=>axios({
  url:'/shopping/restaurant/'+id
})

//获取评分接口
export const scores = (id)=>axios({
  url:'/ugc/v2/restaurants/'+id+'/ratings/scores'
})

//获取评价信息
export const ratings = (id, params)=>axios({
  url:'/ugc/v2/restaurants/'+id+'/ratings',
  params
})

//获取评价分类
export const tags = (id)=>axios({
  url:'https://elm.cangdu.org/ugc/v2/restaurants/'+id+'/ratings/tags'
})